<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="css/user/public.css">
    <link rel="stylesheet" href="css/user/index.css">
    <script language="javascript" type="text/javascript" src="js/user/jquery-1.8.3.min.js"></script>
    <script language="javascript" type="text/javascript" src="js/user/index.js"></script>
    <title>邀请</title>
</head>
<body>
<!--top-->
<div class="contact_main">
    <div class="contact_main_title">
        <p>邀请</p>
    </div>
    <div class="contact_main_cont">
        <div class="contact_main_cont_inp1">
            <div class="contact_main_cont_inp_box">
                <p class="investment_title">邀请分享</p>
                <div class="contact_main_cont_inp_box_left">
                    <p>邀请更多的伙伴一起加入领投吧，快来分享：</p>
                    <!--<p class="invitation_web_addr">加入领投，领取100元投资基金。http://www.lipital.com/register=15867456778</p>-->
                </div>
                <div class="contact_main_cont_inp_box_right">
                    <p><input type="button" value="微信分享"><input type="button" value="微博分享"><span>如有疑问，请查看服务中心或联系客服</span></p>
                </div>
                <div class="cleardiv"></div>
            </div>
        </div>
        <div class="invitation_title">
            <p>邀请信息</p>
        </div>
        <div class="contact_main_cont_from">
            <div class="contact_main_cont_from_title">
                <ul>
                    <li class="publish_check_time">时间</li>
                    <li class="publish_check_name">邀请人姓名</li>
                    <li class="publish_check_xq">手机号码</li>
                    <li class="publish_check_tj">已投资金额</li>
                    <li class="publish_check_zt">已发布项目数</li>
                    <li class="publish_check_cz">优惠金额</li>
                    <div class="cleardiv"></div>
                </ul>
            </div>
            <div class="contact_main_cont_from_cont">
                <div class="invite_list_box"></div>
                <div class="page_wlsb1">
                    <p>
                        <a href="#" class="prev off"><img src="images/page_icon_03.png" ></a>
                        <a href="#" class="on">1</a>
                        <a href="#">2</a>
                        <a href="#" class="page_last">3</a>
                        <em>…</em>
                        <a href="#">6</a>
                        <a href="#">7</a>
                        <a href="#" class="page_last">8</a>
                        <a class="next" href="#"><img src="images/page_icon_05.png" ></a>
                    </p>
                    <p>共<i>3</i>页，到第<input class="xuanze_page" type="text">页<input class="tijiao_page" type="submit" value="确定"></p>
                    <div class="clear"></div>
                </div>
            </div>
        </div>
    </div>

</div>
<!--main-->

<script>
    $(document).ready(function(){
        $.ajax({
            url:"lt/user/getInviteUrl",
            data:"",
            type:"get",
            success:function(data){
                if(data.result==1){
                    alert(data.resultMsg);
                }else{
                    var inviteUrl = data.inviteUrl;
                    var html="<p class='invitation_web_addr'>加入领投，领取100元投资基金。"+inviteUrl+"</p>";
                    $(".contact_main_cont_inp_box_left").append(html);
                    
                }
            }
        });

        var id;
        var pageIndex;
        var pageSize;
        $.ajax({
            url:"lt/user/getInvitorList",
            data:{id:id,pageIndex:pageIndex,pageSize:pageSize},
            type:"get",
            success:function(data){
                if(data.result==1){
                    alert(data.resultMsg);
                }else{
                    var listData = data.data;
                    for(var i = 0 ; i<listData.length; i++){
//                            alert(shuju[i].accountBalance)
                        var html="<ul>" +
                                "<li class='publish_check_time'>"+listData[i].dateTime+"</li>" +
                                "<li class='publish_check_name'><em>"+listData[i].name+"</em></li>" +
                                "<li class='publish_check_xq'>"+listData[i].phone+"</li>" +
                                "<li class='publish_check_tj'>"+listData[i].investMoney+"</li>" +
                                "<li class='publish_check_zt'>"+listData[i].projNum+"</li>" +
                                "<li class='publish_check_cz'>"+listData[i].discount+"</li>" +
                                "<div class='cleardiv'></div>" +
                                "</ul>";
                        $(".invite_list_box").append(html);
                        $(".contact_main_cont_from_cont .invite_list_box ul:odd").css("background","#f9f9f9");
                        var main = $(window.parent.document).find("#iframepage");
                        var thisheight = $(document).height();
                        main.height(thisheight);
                    }
                }
            }
        });
    })
</script>
</body>
</html>